package com.elancom.rbq.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 菜单
 * 
 * @author elancom
 * 
 */
@Table(name = "HP_MENU")
public class Menu extends NodeEntity {

	private static final long serialVersionUID = -4460309590374908873L;

	private String pid;

	private String name;

	private String url;

	private int defaultOpen;

	@Column(name = "PID")
	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "URL")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "DEFAULT_OPEN")
	public int getDefaultOpen() {
		return defaultOpen;
	}

	public void setDefaultOpen(int defaultOpen) {
		this.defaultOpen = defaultOpen;
	}

	@Override
	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		// TODO Auto-generated method stub
		return super.getCreateTime();
	}
}
